const state={
    userinfo:{
        username:'张三'
    }
}
const mutations = {
    SETNAME(state,name){
        state.userinfo.username = name
    }
}
export default{
    state,
    mutations
}